import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

public class MethodFour {
    @SuppressWarnings("all")
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorService executorService = Executors.newCachedThreadPool();
        Future future = executorService.submit(new MyCallable());
        if(!future.isDone()){
            System.out.println("线程还没执行完!");
        }
        System.out.println(future.get());
    }
}
